import request from '@/utils/request'
import prefix from '@/api/basic'

export function page(params) {
  return request(prefix + 'user/info/page', {
    params: params
  })
}

export function save(parmas) {
  return request.post(prefix + 'user/info/save', parmas)
}

export function update(parmas) {
  return request.post(prefix + 'user/info/update', parmas)
}

export function remove(id) {
  return request.delete(prefix + `user/info/delete/${id}`)
}

export function getById(id) {
  return request.get(prefix + `user/info/getById/${id}`)
}

export function validate(params) {
  return request.post(prefix + `user/info/validate`, params)
}
